package com.jdrx.sw.sewage.beans.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "智能加药点位实时数据", description = "智能加药点位实时数据")
@Data
public class CdRealtimeDataPO implements Serializable {
	private static final long serialVersionUID = -2561004726565518666L;
	
	private Long id;
	
	@ApiModelProperty(value = "点位名称")
	private String name;
	
	@ApiModelProperty(value = "点位值")
	private String value;
	
	@ApiModelProperty(value = "单位")
	private String unit;
	
	@ApiModelProperty(value = "采集时间yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime dataTime;
}